package com.yuandian.management.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yuandian.api.management.entity.ConfAlarmIndicatorCode;
import com.yuandian.api.management.entity.ConfAlarmIndicators;
import com.yuandian.bpm.common.data.datascope.BpmBaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 指标信息-Mapper接口
 * @author zfsn
 * @date 2023-4-4
 */
@Mapper
public interface ConfAlarmIndicatorsMapper extends BpmBaseMapper<ConfAlarmIndicators> {

	/**
	 * 分页查询
	 *
	 * @param confAlarmIndicators 筛选条件
	 * @return 通用返回对象
	 */
	Page<ConfAlarmIndicators> listPage(Page<ConfAlarmIndicators> objectPage, @Param("params") ConfAlarmIndicators confAlarmIndicators);


	/**
	 * 通过主键更新自定义告警指标数据
	 *
	 * @param confAlarmIndicators
	 * @return 通用返回对象
	 * @Description type = 1, 告警类型为基础告警
	 */
    List<Map<Integer, Integer>> getBaseAlarmIndicatorsAndCode(@Param("params") ConfAlarmIndicators confAlarmIndicators);

	/**
	 * 根据指标对象值查询指标编码
	 *
	 * @param objValue
	 * @return 通用返回对象
	 */
    List<ConfAlarmIndicatorCode> queryCodeList(Integer objValue);
}